package me.send.produce.client.controller;

import me.send.business.base.ErrorEntity;
import me.send.business.service.service.CollectionuserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "collectionuser")
public class CollectionuserController {

	@Autowired
	private CollectionuserService collectionuserService;

	@RequestMapping(value = "delete/userid/popuserid")
	@ResponseBody
	public ErrorEntity delete_userid_popuserid(Integer userid,
			Integer popuserid, String devicenumber) {
		return collectionuserService.delete_userid_popuserid(userid, popuserid,
				devicenumber);
	}

	// 收藏经纪人 2015年7月2日17:53:13
	@RequestMapping(value = "save/collectionuser")
	@ResponseBody
	public ErrorEntity insert_collectionuser(String devicenumber,
			Integer userid, Integer popuserid) {
		return collectionuserService.insert_collectionuser(devicenumber,
				userid, popuserid);
	}

	@RequestMapping(value = "object")
	@ResponseBody
	public ErrorEntity object() {
		return collectionuserService.ocs_object();
	}

}
